package com.xg.sys.mapper;

import com.xg.sys.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author dehuisun
 * @since 2019-04-10
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 查看user的所有权限
     * @param userId
     * @return
     */
    List<String> getAllPerms(String userId);

    /**
     * 根据姓名查询系统用户
     * @param username
     * @return
     */
    SysUser queryByUserName(String username);


    List<Long> selectAllMenuIds(Long id);

    List<String> queryAllPerms(String userId);


}
